package display2012;

import interfaces.IDisplay;
import it.unibo.is.interfaces.IBasicEnvAwt;

public abstract class Display implements IDisplay {

	protected IBasicEnvAwt env;
	protected String curValToShow = "error";

	public Display(IBasicEnvAwt env) {
		this.env = env;
		configure();
	}

	protected abstract void configure(); // Template method

	protected abstract void showVal(String v); // Template method

	@Override
	public void update(String v) {
		curValToShow = v;
		showVal(getCurVarToShow());
	}

	@Override
	public String getCurVarToShow() {
		return curValToShow;
	}
}
